
<!DOCTYPE html>
<html lang="ja">

<head>
<meta charset="utf-8">
<title>Shellcoder&#039;s Challenge!</title>
<script type="text/javascript" src="jquery-1.10.2.min.js"></script>
<script type="text/javascript">
function logout()
{
	$.get('cgi-bin/logout.py',
		{
		},
		function(data)
		{
			result = data.substring(0, 2);
			if(result == "lo"){
				location.href="login.html";
			}
		}
	);
}
function updating()
{
	var mlevel = 16;
	var clear = ['　', '★', '☆'];
	
	$.post('cgi-bin/auth.py',
		{
		'user': "",
		'pass': ""
		},
		function(data)
		{
			result = data.substring(0, 2);
			if(result != "ok"){
				location.href="login.html";
			}
		}
	);

	$.get('cgi-bin/check.py',
		{
		},
		function(data)
		{
			var html = "";
			var cleard = data.split(',');
			
			for(var i=0; i < mlevel; i++){
				html += '<tr><td style="color: #ff0000;">';
				if($.inArray(i.toString(), cleard) >= 0){
					if($.inArray("clear?", cleard) >= 0){
						html += clear[2];
					}else{
						html += clear[1];
					}
				}else{
					html += clear[0];
				}
				if(i == 15){
					html += '</td><td><a href="99.html">';
					html += 'Level ' + i.toString() + '</a> (Bin500)</td>';
				}else{
					html += '</td><td><a href="' + i.toString() + '.html">';
					html += 'Level ' + i.toString() + '</a></td>';
				}
				html += '</tr>\n';
			}
			document.getElementById("tbl").innerHTML = html;
		}
        );
}
</script>
</head>

<body onload="javascript:updating()">
<a href="http://www.seccon.jp/">
<img src="" width="191" height="34" alt="SECCON" border="0">
</a>

<h1>Shellcoder&#039;s Challenge!</h1>

<table>
<tr>
<td><table id="tbl"></table></td>
<td><table><tr><td>　</td></tr></table></td>
<td><table id="tbl2"><tr><td></td></tr></table></td>
</tr>
</table>

<p><a href="javascript:void(0);" onclick="logout();">Logout</a></p>

</body>
</html>

